package com.cwj.dao;

import com.cwj.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ACER
 */
@Repository
public interface NetworkDao {

    /**
     *
     * @param user
     * @return
     */
    List<User> getUser(User user);

    /**
     *
     * @return
     */
    List<Message> getMessage();

    /**
     *
     * @param message
     */
    void saveMessage(@Param("message") String message);

    /**
     *
     * @param account
     * @param password
     * @return
     */
    User userLogin(@Param("account") String account, @Param("password") String password);

    /**
     *
     * @param account
     * @param password
     * @return
     */
    Admin adminLogin(@Param("account") String account, @Param("password") String password);

    User getTest(@Param("account") String account);

    void updata(User user);

    Users getUsers(@Param("uid") int uid);

    void updataUsers(Users users);

    void setMessage(@Param("message") String message);

    List<User02> numSQL(@Param("uid") String uid);

    List<User02> strSQL(@Param("uid") String uid);

    User03 user03Login(@Param("username") String username,@Param("password") String password);

    User03 getUser03(@Param("username") String username);


}
